home *** CD-ROM | disk | FTP | other *** search
- /*
- ##########################################################################
- #### ####
- #### The MusicBox Project ####
- #### ============================ ####
- #### ####
- #### Icon4.c ####
- #### ####
- #### Version 2.1os -- September 29, 2000 ####
- #### ####
- #### Copyright (C) 1994 Thomas Dreibholz ####
- #### 2000 Molbachweg 7 ####
- #### 51674 Wiehl ####
- #### Germany ####
- #### ####
- #### EMail: Dreibholz@bigfoot.com ####
- #### WWW: http://www.bigfoot.com/~dreibholz ####
- #### ####
- ##########################################################################
- */
- /***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
- /* ShowCD-Icon */
-
- struct Remember *ChipRemember=NULL;
-
- UWORD ShowCDI1Data[] =
- {
- /* Plane 0 */
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0300,0x06A5,0x7000,
- 0x0300,0x0000,0x0038,0x0300,0x00D8,0x1800,0x0300,0x0000,
- 0x0800,0x0300,0x0553,0x67C0,0x0300,0x0800,0x3E00,0x0300,
- 0x0000,0x0000,0x0300,0x01A5,0x4FE0,0x0300,0x0000,0x0000,
- 0x0300,0x0000,0x0000,0x0300,0x0B52,0x29F0,0x0300,0x0000,
- 0x0000,0x0300,0x0000,0x0000,0x0300,0x03C9,0xF800,0x0300,
- 0x0000,0x0000,0x0300,0x03AB,0x7E00,0x0300,0x0000,0x0000,
- 0x0300,0x06B5,0x77C0,0x0300,0x0000,0x0000,0x0300,0x0F32,
- 0x5B00,0x0300,0x0FBF,0x0000,0x0300,0x0000,0xFF80,0x0300,
- 0x0000,0x0000,0x0300,0x3FFF,0xFFFF,0xFF00,0x0000,0x0000,
- 0x0300,0x1FF8,0x7FC1,0xFF00,0x0000,0x0000,0x0300,0x3FFF,
- 0xFFFF,0xFF00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,
- /* Plane 1 */
- 0xFFFF,0xFFFF,0xFF00,0xC000,0x0000,0x0000,0xC000,0x0000,
- 0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,
- 0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,
- 0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,
- 0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,
- 0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,
- 0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,
- 0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,
- 0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,
- 0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xFFFF,0xFFFF,
- 0xFC00,0xE007,0x803E,0x0000,0xFFFF,0xFFFF,0xFC00,0xC000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,
- /* Plane 2 */
- 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xFC00,0x395A,0x8FFF,
- 0xFC00,0x3FFF,0xFFC7,0xFC00,0x3F27,0xE7FF,0xFC00,0x3FFF,
- 0xF7FF,0xFC00,0x3AAC,0x983F,0xFC00,0x37FF,0xC1FF,0xFC00,
- 0x3FFF,0xFFFF,0xFC00,0x3E5A,0xB01F,0xFC00,0x3FFF,0xFFFF,
- 0xFC00,0x3FFF,0xFFFF,0xFC00,0x34AD,0xD60F,0xFC00,0x3FFF,
- 0xFFFF,0xFC00,0x3FFF,0xFFFF,0xFC00,0x3C36,0x07FF,0xFC00,
- 0x3FFF,0xFFFF,0xFC00,0x3C54,0x81FF,0xFC00,0x3FFF,0xFFFF,
- 0xFC00,0x394A,0x883F,0xFC00,0x3FFF,0xFFFF,0xFC00,0x30CD,
- 0xA4FF,0xFC00,0x3040,0xFFFF,0xFC00,0x3FFF,0x007F,0xFC00,
- 0x3FFF,0xFFFF,0xFC00,0x0000,0x0000,0x0000,0x3FFF,0xFFFF,
- 0xFC00,0x3FFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xFC00,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,
- 0x0000,
- };
-
- struct Image ShowCDI1 =
- {
- 0, 0, /* Upper left corner */
- 40, 35, 3, /* Width, Height, Depth */
- ShowCDI1Data, /* Image data */
- 0x0007, 0x0000, /* PlanePick, PlaneOnOff */
- NULL /* Next image */
- };
-
- #asm
- E1:
- public _ShowCDI1Data_Len
- _ShowCDI1Data_Len
- dc.l E1-_ShowCDI1Data
- #endasm
-
- extern LONG ShowCDI1Data_Len;
-
-
- UWORD ShowCDI2Data[] =
- {
- /* Plane 0 */
- 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,
- 0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,
- 0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,
- 0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,
- 0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,
- 0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,
- 0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,
- 0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,
- 0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,
- 0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,
- 0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,0xFFFF,0xFF00,0x3FFF,
- 0xFFFF,0xFF00,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,
- /* Plane 1 */
- 0xFFFF,0xFFFF,0xFF00,0xC000,0x0000,0x0000,0xC000,0x0000,
- 0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,
- 0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,
- 0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,
- 0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,
- 0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,
- 0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,
- 0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,
- 0x0000,0x0000,0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,
- 0xC000,0x0000,0x0000,0xC000,0x0000,0x0000,0xFFFF,0xFFFF,
- 0xFC00,0xE007,0x803E,0x0000,0xFFFF,0xFFFF,0xFC00,0xC000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,
- /* Plane 2 */
- 0x0000,0x0000,0x0000,0x3FFF,0xFFFF,0xFC00,0x395A,0x8FFF,
- 0xFC00,0x3FFF,0xFFC7,0xFC00,0x3F27,0xE7FF,0xFC00,0x3FFF,
- 0xF7FF,0xFC00,0x3AAC,0x983F,0xFC00,0x37FF,0xC1FF,0xFC00,
- 0x3FFF,0xFFFF,0xFC00,0x3E5A,0xB01F,0xFC00,0x3FFF,0xFFFF,
- 0xFC00,0x3FFF,0xFFFF,0xFC00,0x34AD,0xD60F,0xFC00,0x3FFF,
- 0xFFFF,0xFC00,0x3FFF,0xFFFF,0xFC00,0x3C36,0x07FF,0xFC00,
- 0x3FFF,0xFFFF,0xFC00,0x3C54,0x81FF,0xFC00,0x3FFF,0xFFFF,
- 0xFC00,0x394A,0x883F,0xFC00,0x3FFF,0xFFFF,0xFC00,0x30CD,
- 0xA4FF,0xFC00,0x3040,0xFFFF,0xFC00,0x3FFF,0x007F,0xFC00,
- 0x3FFF,0xFFFF,0xFC00,0x0000,0x0000,0x0000,0x3FFF,0xFFFF,
- 0xFC00,0x3FFF,0xFFFF,0xFC00,0x3FFF,0xFFFF,0xFC00,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x8000,0x0000,
- 0x0000,
- };
-
- #asm
- E2:
- public _ShowCDI2Data_Len
- _ShowCDI2Data_Len
- dc.l E2-_ShowCDI2Data
- #endasm
-
- extern LONG ShowCDI2Data_Len;
-
- struct Image ShowCDI2 =
- {
- 0, 0, /* Upper left corner */
- 40, 35, 3, /* Width, Height, Depth */
- ShowCDI2Data, /* Image data */
- 0x0007, 0x0000, /* PlanePick, PlaneOnOff */
- NULL /* Next image */
- };
-
- struct DiskObject ShowCD =
- {
- WB_DISKMAGIC, /* Magic Number */
- WB_DISKVERSION, /* Version */
- { /* Embedded Gadget Structure */
- NULL, /* Next Gadget Pointer */
- 0, 0, 40, 36, /* Left,Top,Width,Height */
- GADGIMAGE | GADGHIMAGE, /* Flags */
- RELVERIFY | GADGIMMEDIATE, /* Activation Flags */
- BOOLGADGET, /* Gadget Type */
- (APTR)&ShowCDI1, /* Render Image */
- (APTR)&ShowCDI2, /* Select Image */
- NULL, /* Gadget Text */
- NULL, /* Mutual Exclude */
- NULL, /* Special Info */
- 0, /* Gadget ID */
- (APTR) 0x0001, /* User Data (Revision) */
- },
- WBTOOL, /* Icon Type */
- NULL, /* Default Tool */
- NULL, /* Tool Type Array */
- NO_ICON_POSITION, /* Current X */
- NO_ICON_POSITION, /* Current Y */
- NULL, /* Drawer Structure */
- NULL, /* Tool Window */
- 8192 /* Stack Size */
- };
-
- VOID EntferneIcon()
- {
- if(ChipRemember) FreeRemember(&ChipRemember,TRUE);
- }
-
- BOOL InitIcon()
- {
- REGISTER UBYTE *c1,*c2;
-
- c1=AllocRemember(&ChipRemember,ShowCDI1Data_Len,MEMF_CHIP);
- c2=AllocRemember(&ChipRemember,ShowCDI2Data_Len,MEMF_CHIP);
- if((c1==NULL)||(c2==NULL))
- {
- puts("Nicht genug Chip-Speicher!");
- return(FALSE);
- }
- CopyMem(&ShowCDI1Data,c1,ShowCDI1Data_Len);
- CopyMem(&ShowCDI2Data,c2,ShowCDI2Data_Len);
- ShowCDI1.ImageData=c1;
- ShowCDI2.ImageData=c2;
- return(TRUE);
- }
-
-